home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-01-20 | 932 b | 35 lines | [TEXT/MMCC] |
- CPreferences Class 1.0
-
-
- This class was created to simplify the creation of preference
- files for an application.
-
- The object is very general and simple to use.
-
- When MW C++ supports templates, I will rewrite the class to support
- them. This will allow an easy way to create multiple preference files
- for applications that need them.
-
- Use of CPreferences:
-
- 1. Add "CPreferences* mPrefs" to your application class.
-
- 2. Add this line to your constructor.
- mPrefs = new CPreferences('CPI6', "\pTextStreamer 3.0 Prefs");
- // 'CPI6' is the creator of the file.
- // "\pTextStreamer 3.0 Prefs" is the name of the file.
-
- 3. Add this line to your destructor
- delete mPrefs;
-
- 4. In order to access the data in your data structure, you will
- need to add accessor functions to CPreferences.
-
-
- In the next version I will also include methods for using a Preferences
- dialog.
-
- Richard A. Bray
- President
- Compu-Phobic, Inc.
- AOL: CompuFobic